import Vue from 'vue'
import App from './App.vue'
import router from './router'
// import axios from 'axios'
import ArticleItem from '@/components/ArticleItem.vue'

import '@/utils/vant.js'
Vue.component(ArticleItem.name, ArticleItem)

// 挂载一个自定义属性$http
// Vue.prototype.$http = axios
// 全局配置axios请求根路径(axios.默认配置.请求根路径)
// axios.defaults.baseURL = 'http://127.0.0.1:3000'

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
